<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:75:"D:\phpstudy_pro\WWW\demo\public/../application/admin\view\article\edit.html";i:1579257037;}*/ ?>
﻿<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>文章管理</title>
<link href="/static/admin/Css/public.css" type="text/css" rel="stylesheet" />
<script charset="utf-8" src="/static/admin/Js/editor/kindeditor-min.js"></script>
<script charset="utf-8" src="/static/admin/Js/editor/lang/zh_CN.js"></script>
<script>
//引入KindEditor在线编辑器
var editor;
KindEditor.ready(function(K) {
	editor = K.create('textarea[name="content"]', {
		allowFileManager : true
	});
});
</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
	<tr class="topbg"><td>文章管理</td></tr>
	<tr class="tdbg">
		<td height="30">&nbsp;&nbsp;
			<a href="<?php echo url('admin/article/index'); ?>">管理首页</a>&nbsp;|&nbsp;
			<a href="<?php echo url('admin/article/add'); ?>">添加文章</a>
		</td>
	</tr>
</table>
<br />
<form name="form1" method="POST" action="<?php echo url('admin/article/update'); ?>">

<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
	<input type="hidden" name="id" value="<?php echo $Article['id']; ?>">


	<tr class="title"><td colspan="6" align="center">修改文章</td></tr>
	<tr class="tdbg">
		<td width="17%" height="30" align="right">文章类别：</td>
		<td>
			<select name="category_id">
				<?php foreach($data as $v): ?>
					<option value="<?php echo $v['id']; ?>" <?php if(($Article['category_id'] == $v['id'])): ?> selected <?php endif; ?>>
						<?php echo str_repeat('--',$v->level*2); ?>
						<?php echo $v['classname']; ?>
					</option>
				<?php endforeach; ?>
			</select>
		</td>
	</tr>
	<tr class="tdbg">
		<td height="30" align="right">标&nbsp;&nbsp;题：</td>
		<td colspan="5"><input name="title" type="text" size="90" maxlength="50" value="<?php echo $Article['title']; ?>"/></td>
	</tr>
	<tr class="tdbg">
		<td height="30" align="right">排&nbsp;&nbsp;序：</td>
		<td>
			<input name="orderby" type="text" value="<?php echo $Article['orderby']; ?>" size="2" maxlength="3" />
			<span style="padding-left:20px;">置顶：</span>
			<input name="top" type="checkbox" value="1" <?php if(($Article['top'])): ?> checked <?php endif; ?> />
		</td>
	</tr>
	<tr class="tdbg">
		<td height="30" align="right">内&nbsp;&nbsp;容：</td>
		<td><textarea name="content" style="width:95%;height:300px;"><?php echo $Article['content']; ?></textarea></td>
	</tr>
	<tr class="tdbg">
		<td height="30" align="right">&nbsp;</td>
		<td colspan="5">
			<input type="submit" value="更新" />
			<input type="button" onclick="history.go(-1)" value="返回" />
		</td>
	</tr>
</table>
</form>
</body>
</html>